package com.itheima.zuoye.zuoye1;

import java.time.LocalDateTime;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(new java.text.SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒").format(date));
        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDateTime.format(java.time.format.DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH时mm分ss秒")));
   }
}
